import request from "@/utils/request";

// 查询角色管理列表
export function listContribute(query) {
  return request({
    url: "/content/contribute/op/page",
    method: "post",
    data: query,
  });
}

// 查询角色管理详细
export function getContribute(id) {
  return request({
    url: "/content/contribute/op" + "/" + id,
    method: "get",
  });
}

// 新增角色管理
export function addContribute(data) {
  return request({
    url: "/content/contribute/op/save",
    method: "post",
    data: data,
  });
}

// 修改角色管理
export function updateContribute(data) {
  return request({
    url: "/content/contribute/op/update",
    method: "put",
    data: data,
  });
}

// 删除角色管理
export function deleteContribute(id) {
  return request({
    url: "/content/contribute/op" + "/" + id,
    method: "delete",
  });
}
